//package com.example.webproject.entity;
//
//import com.fasterxml.jackson.annotation.JsonBackReference;
//import com.fasterxml.jackson.annotation.JsonIgnore;
//import com.fasterxml.jackson.annotation.JsonManagedReference;
//import lombok.Data;
//
//import javax.persistence.*;
//import java.util.ArrayList;
//import java.util.List;
//
///**
// * @author hhs
// * @Description
// * @date 2022/12/6 14:00
// */
//@Data
//@Table(name = "t_question")
//@Entity
//public class Question extends BaseEntity{
//    @Transient
//    public static final int TYPE_SINGLE=0;
//    @Transient
//    public static final int TYPE_JUDGE=1;
//    @Transient
//    public static final int TYPE_MANY=2;
//
//    /**
//     * 0 :单项    1：判断    2：不定项
//     */
//    private int type;
//
//    /**
//     * 题目内容
//     */
//    private String content;
//    /**
//     * 题目分析
//     */
//    private String analysis;
//    /**
//     * 题目排序
//     */
//    private  int ordinal;
////    @JsonManagedReference
//    @OneToMany(cascade = {CascadeType.PERSIST},mappedBy = "question")
//    private List<Option> options=new ArrayList<>();
////    @JsonBackReference
//    @ManyToOne
//    private Chapter chapter;
//
////    @JsonManagedReference
//    @OneToMany(mappedBy = "question")
//    private List<Result> results;
//
//    @JsonManagedReference
//    public List<Option> getOptions() {
//        return options;
//    }
//    @JsonBackReference
//    public Chapter getChapter() {
//        return chapter;
//    }
//    @JsonBackReference
//    public List<Result> getResults() {
//        return results;
//    }
//}
